﻿@using Portal.Frontend.UI.Helpers
@model RSHB.Frontend.UI.ViewModels.UserCreateViewModel

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    <div class="action_panel">
        <ul>
            <li><input type="submit" value="Создать" /></li>
            <li>@Html.ImageActionCancelLink("Отменить", string.Empty, "Index", "Individual", null, null, null)</li>
        </ul>
    </div>
    <div class="f">
        <fieldset>
            <p class="row">
                @Html.LabelFor(m => m.UserLastName)@Html.TextBoxFor(m => m.UserLastName, new { @class = "input"})
            </p>
            <p class="row">
                @Html.LabelFor(m => m.UserFirstName)@Html.TextBoxFor(m => m.UserFirstName, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.UserMiddleName)@Html.TextBoxFor(m => m.UserMiddleName, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.Birthday)@Html.TextBoxFor(m => m.Birthday, new { @class = "datepicker input short" })<img src="/Content/images/calendar.png" />
            </p>
            <p class="row">
                @Html.LabelFor(m => m.PassportSeries)@Html.TextBoxFor(m => m.PassportSeries, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.PassportNum)@Html.TextBoxFor(m => m.PassportNum, new { @class = "input" })
            </p>
            <p class="row">
                @Html.LabelFor(m => m.PassportIssueDate)@Html.TextBoxFor(m => m.PassportIssueDate, new { @class = "datepicker input short" })<img src="/Content/images/calendar.png" />
            </p>      
            <p class="row">
                @Html.LabelFor(m => m.PassportIssuerName)@Html.TextAreaFor(m => m.PassportIssuerName, 5, 50, null)
            </p>
            <p class="row">
                @Html.LabelFor(m => m.PassportIssuerCode)@Html.TextBoxFor(m => m.PassportIssuerCode)
            </p>
            <p class="row">
                @Html.LabelFor(m => m.RegisterAddress)@Html.TextAreaFor(m => m.RegisterAddress, 5, 50, null)
            </p>
            <p class="row">
                @Html.LabelFor(m => m.ActualAddress)@Html.TextAreaFor(m => m.ActualAddress, 5, 50, null)
            </p>
        </fieldset>
    </div>
    <div class="action_panel">
        <ul>
            <li><input type="submit" value="Создать" /></li>
            <li>@Html.ImageActionCancelLink("Отменить", string.Empty, "Index", "Individual", null, null, null)</li>
        </ul>
    </div>
}



